package com.ym.medical.domain.param;

import com.ym.common.annotations.CustomConstraint;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * 优惠劵对象 coupon
 *
 * @author ym
 * @date 2020-09-15
 */
@ApiModel(value = "优惠劵-查询")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CouponQueryParam {

    @ApiModelProperty("优惠劵名称")
    private String couponName;

    @ApiModelProperty("01满减券02折扣券03兑换券")
    private String theType;

    @ApiModelProperty("折扣比例")
    private Double discount;

    @ApiModelProperty("0表示无门槛")
    private Double fullLimit;

    @ApiModelProperty("满额减扣金额")
    private Double fullMoney;

    @ApiModelProperty("折扣上限金额，0表示无上限")
    private Double discountMoney;

    @ApiModelProperty("01图文问诊02电话问诊03视频问诊")
    private String toSb;

    @ApiModelProperty("01固定时间02领取x天失效")
    private String validModel;

    @ApiModelProperty("有效开始时间")
    private Date startTime;

    @ApiModelProperty("有效结束时间")
    private Date endTime;

    @ApiModelProperty("有效天数，0表示无限")
    private Integer validDay;

    @ApiModelProperty("发放数量限制,0表示无限制")
    private Integer numLimit;

    @ApiModelProperty("发放递减字段")
    private Integer decNumLimit;

    @ApiModelProperty("系统优惠劵00否01是")
    private String isSys;

    @ApiModelProperty("发布状态(01-待发布；02-已发布)")
    private String pubState;

    @ApiModelProperty("购买方式(金币)")
    private Double buyGold;

    @ApiModelProperty("创建人")
    private Long createPerson;

    @ApiModelProperty("购买方式(现金)")
    private Double buyCash;

    @ApiModelProperty("ids")
    private Long[] ids;
}
